package com.cjs.example.service.ImpI;

import com.cjs.example.mappers.UserRepository;
import com.cjs.example.po.User;
import com.cjs.example.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserRepository userRepository;
	
	@Override
	public List<User> select() {
		return userRepository.select();
	}

	@Override
	public Long add(User user) {
		return userRepository.addUser(user);
	}

}
